home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / computerjanitor / plugins / deb_plugin.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.2 KB  |  33 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import os
  5. import computerjanitor
  6. import apt
  7.  
  8. class DebPlugin(computerjanitor.Plugin):
  9.     '''Plugin for post_cleanup processing with apt.
  10.     
  11.     This plugin does not find any cruft of its own. Instead it
  12.     centralizes the post_cleanup handling for all packages that remove
  13.     .deb packages.
  14.     
  15.     '''
  16.     
  17.     def get_cruft(self):
  18.         return []
  19.  
  20.     
  21.     def post_cleanup(self):
  22.         
  23.         try:
  24.             self.app.apt_cache.commit(apt.progress.TextFetchProgress(), apt.progress.DumbInstallProgress())
  25.         except Exception:
  26.             e = None
  27.             raise 
  28.         finally:
  29.             self.app.refresh_apt_cache()
  30.  
  31.  
  32.  
  33.